package com.zh.springcloud.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zh.springcloud.common.Result;
import com.zh.springcloud.entity.Payment;
import com.zh.springcloud.mapper.PaymentMapper;
import com.zh.springcloud.service.PaymentService;
import org.springframework.stereotype.Service;

/**
 * @Description:
 * @ClassName PaymentServiceImpl
 * @date: 2021.06.08 15:14
 * @Author: zhanghang
 */
@Service
public class PaymentServiceImpl extends ServiceImpl<PaymentMapper, Payment> implements PaymentService {


	@Override
	public String paymentInfo_ok(Integer id) {
		return "线程："+Thread.currentThread().getName()+" paymentInfo_ok,id:"+id+" \t "+"O(∩_∩)O";
	}

	@Override
	public String paymentInfo_timeout(Integer id) {
		try {
			Thread.sleep(3000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		return "线程："+Thread.currentThread().getName()+" paymentInfo_timeout,id:"+id+" \t "+"O(∩_∩)O";
	}
}
